<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 鼠标事件对象MouseEvent
        document.addEventListener('click', function(e){
            // client可视区，与滚动条无关
            console.log(e.clientX);
            console.log(e.clientY);
            // 2. ❤❤page 鼠标在页面文档的x和y坐标
            // 3. screen 鼠标在电脑屏幕的x和y坐标
        })
    </script>
</body>
</html>